package com.gtq.uhome.service;

import com.gtq.uhome.pojo.Site;
import com.gtq.uhome.result.Result;
import com.gtq.uhome.vo.*;

import java.util.List;

/**
 * @description:
 * @author: Zhong Ranjie
 * @create: 2020-08-03 17:20
 **/
public interface SiteService {

    Result addNewSite(SiteVo site);

    List<Site> searchSite(String siteName);

    Result addSiteMember(AddSiteMemberVo siteMemberVo);

    StaffVo findByPhone(String phone);

    boolean updateSiteMember(SiteMemberUpdateVo siteMemberVo);

    List<SiteMemberVo> findSiteMembers(Integer siteId,String name);

    boolean updateSite(SiteUpdateVo updateVo);

    boolean deleteSiteMember(List<Integer> memberIdList);

    boolean deleteSiteList(List<Integer> staffIdList);

}
